package io.renren.modules.frt.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.frt.dao.CopReport3Dao;
import io.renren.modules.frt.entity.CopReport3Entity;
import io.renren.modules.frt.service.CopReport3Service;


@Service("copReport3Service")
public class CopReport3ServiceImpl extends ServiceImpl<CopReport3Dao, CopReport3Entity> implements CopReport3Service {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CopReport3Entity> page = this.selectPage(
                new Query<CopReport3Entity>(params).getPage(),
                new EntityWrapper<CopReport3Entity>()
        );

        return new PageUtils(page);
    }
    
    @Override
    public List<CopReport3Entity> sumaryList(Long taskUserId, Long[] userIds){
    	Map<String, Object> params = new HashMap<>();
    	params.put("taskUserId", taskUserId);
    	params.put("userIds", userIds);
    	return baseMapper.sumaryList(params);
    }

}
